#ifndef CONNECTOR_H_
#define CONNECTOR_H_

#include "base/base.h"

namespace rpc {
class Socket;
class Connection;

class Connector {
  public:
    Connector() {
    }

    Socket* Connect(const std::string& server_ip, uint16 server_port,
                    uint32 timeout = 10, const std::string& client_ip = "");

  private:
    bool WaitForConnected(Socket* sock, int32 timeout);

    DISALLOW_COPY_AND_ASSIGN(Connector);
};
}

#endif
